//
//  UrlRequestManager.h
//  LO_MUSIC
//
//  Created by 胡林 on 16/2/29.
//  Copyright © 2016年 杨少锋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "singleton.h"
typedef NS_ENUM(NSInteger,requestUrlType) {
    GET,
    POST
};
typedef void(^successBlock)(id item);
typedef void(^faileBlock)(NSError * err);

@interface UrlRequestManager : NSObject

single_interface(UrlRequestManager);


+(void)requestWith:(requestUrlType)Type URL:(NSString *)URL condition:(NSDictionary *)condition SuccessBlock:(successBlock)successBlock faileBlock:(faileBlock)faileBlock;



@end
